let initialState = null //请求失败需要提示错误

export default function (state = initialState,  action) {
    let { type, payload } = action;

    switch (type) {
        case "FETCH_CART_FAILD": //请求失败 返回错误信息
            return payload
        default:
            return state
    }
}